#!/bin/bash

if [ -f file.txt ];then
 echo "文件存在"
else
 echo "文件不存在"
fi